<style>
    .rich-panel-body {
        font-size: 13px;
    }
</style>
<f:view>
    <h:form>
        <h:outputText value="Posting in #{sessionBean.ejbSession.currentSite.site}"  style="font-size: 20px; font-weight: bold;"  rendered="#{sessionBean.ejbSession.resume==null}"/>
        <h:outputText value="Posting in #{resumeBean.resume.site.site}"  style="font-size: 20px; font-weight: bold;" rendered="#{sessionBean.ejbSession.resume!=null}"/>
        <h:outputText value=", #{resumeBean.area.area}"  style="font-size: 20px; font-weight: bold;" rendered="#{resumeBean.areaId>0}"/>
        <br/>
        <h:outputText value="#{resumeBean.resume.title}"  style="font-size: 18px; font-weight: bold;"/>
        <h:outputText value=" - (#{resumeBean.resume.location})"  style="font-size: 18px; font-weight: bold;" rendered="#{resumeBean.resume.location!=null && resumeBean.resume.location!=''}"/>
        <rich:separator height="1"/>
        <h:outputText value="Reply to: "/>
        <h:outputLink value="mailto:#{resumeBean.resume.email}" rendered="#{resumeBean.resume.typeReplyTo=='real email'}">
            <h:outputText value="#{resumeBean.resume.email}"></h:outputText>
        </h:outputLink>
        <h:outputText value="your anonymous eez2find address will appear here" style="font-style: italic;" rendered="#{sessionBean.ejbSession.resume==null && resumeBean.resume.typeReplyTo=='masked email'}" />
        <h:outputLink value="mailto:resume-#{resumeBean.resume.code}@eez2find.com" rendered="#{sessionBean.ejbSession.resume!=null && resumeBean.resume.typeReplyTo=='masked email'}">
            <h:outputText value="resume-#{resumeBean.resume.code}@eez2find.com"></h:outputText>
        </h:outputLink>
        <h:outputText value="see below" rendered="#{resumeBean.resume.typeReplyTo=='any email'}" />
        <br/>
        <h:outputText value="Date: #{resumeBean.toDay}"/>
        <rich:spacer height="20"/>
        <rich:panel style="width:700px; border-color:white;">
            ${resumeBean.description}
        </rich:panel>
        <ul>
            <c:if test="${resumeBean.resume.location!=null && resumeBean.resume.location!=''}"><li><h:outputText value="Location: #{resumeBean.resume.location}" /></li></c:if>
            <li><h:outputText value="it's ok to contact this poster if you are a potential employer or other principal."/></li>
            <c:if test="${resumeBean.resume.directContact}"><li><h:outputText value="it's OK for recruiters to contact this resume seeker." /></li></c:if>
            <c:if test="${!resumeBean.resume.directContact}"><li><h:outputText value="Principals only. Recruiters, please don't contact this resume seeker." /></li></c:if>
            <c:if test="${resumeBean.resume.othersContact}"><li><h:outputText value="it's ok to contact this poster with services or other commercial interests." /></li></c:if>
            <c:if test="${!resumeBean.resume.othersContact}"><li><h:outputText value="it's NOT ok to contact this poster with services or other commercial interests." /></li></c:if>
        </ul>
        <rich:spacer height="10"/>
        <h:outputText value="Resume Code: #{resumeBean.resume.code}" rendered="#{sessionBean.ejbSession.resume!=null}"/>
    </h:form>
    <h:form>
        <h:messages globalOnly="true" style="color: red" styleClass="errorMessage"/>
        <h:panelGrid columns="2">
            <h:outputLink value="/site/faces/resumePosting/create.jsp" rendered="#{sessionBean.ejbSession.resume==null}">
                <h:outputText value="Back to Edit"></h:outputText>
            </h:outputLink>
            <h:outputLink value="/site/faces/resumePosting/edit.jsp" rendered="#{sessionBean.ejbSession.resume!=null}">
                <h:outputText value="Back to Edit"></h:outputText>
            </h:outputLink>
            <h:commandButton id="submitCreate" type="submit" value="Create" action="#{resumeBean.create}" rendered="#{sessionBean.ejbSession.resume==null}"/>
            <h:commandButton id="submitUpdate" type="submit" value="Update" action="#{resumeBean.update}" onclick="if(!confirm('Your Post has been edited. Are you sure?'))return false" rendered="#{sessionBean.ejbSession.resume!=null}" />
        </h:panelGrid>
    </h:form>
    <rich:separator height="1" />
</f:view>